import network from '@/common/network.js'


//活动-分页列表查询
export const getMoveSearchList = param => network({
  url:`/gp-boot/gp/api/gpMove/searchList`,
  param,
})
//活动-详情
export const getMoveSearchInfo = param =>{
  return network({
    url: '/gp-boot/gp/api/gpMove/info',
    method: 'post',
    param,
  })
}
//活动-我的福利
export const getMyFLList = data => network({
  url:'/gp-boot/gp/api/gpMove/myFLList',
  data,
  auth: true,
})


//活动信息-活动个人预约
export const addGpMovedate = data => network({
  url:'/gp-boot/gp/api/gpMove/addGpMovedate',
  method: 'post',
  data,
  auth: true,
})
//活动信息-单位活动预约
export const addGpMovedatecom = data => network({
  url:'/gp-boot/gp/api/gpMove/addGpMovedatecom',
  method:'post',
  data,
  auth: true,
})
//企业认证信查询
export  const getgpUsercom = ()=>  network({
  url: '/gp-boot/gp/api/gpUsercom/get',
  method: 'get',
  auth: true,
})
//活动信息-活动人数
export const gpMovedatePerson = param => network({
  url:'/gp-boot/gp/api/gpMove/gpMovedatePerson',
  method: 'post',
  param
})
//活动-我的活动
export const gpMoveMyList = data => network({
  url:'/gp-boot/gp/api/gpMove/myList',
  data,
  auth: true,
})

//获取用户活动操作次数
export const getUserMoveOperateTimes = param =>network({
  url:'/gp-boot/gp/api/gpUserMoveOperateTimes/getUserMoveOperateTimes',
  param,

})

//获取活动总操作次数
export const getMoveOperateTimes = param => network({
  url:'/gp-boot/gp/api/gpUserMoveOperateTimes/getMoveOperateTimes',
  param
})

//用户活动操作次数-增加1次-1.阅读2.点赞3.分享
export const addUserMoveOperateTimes = param => network({
  url:'/gp-boot/gp/api/gpUserMoveOperateTimes/addUserMoveOperateTimes',
  method: 'post',
  param,
  auth: true,
})

//活动列表
export const gpMoveList = data=> {
  return network({
    url: '/gp-boot/gp/api/gpMove/list',
    method: 'get',
    data: data,
  })
}


//活动--修改邮寄地址
export const gpUpdatePostAddress = data=> {
  return network({
    url: '/gp-boot/gp/api/gpMove/updatePostAddress',
    method: 'post',
    data,
    auth: true,
  })
}


//增加用户活动视频播放次数---NEW
export const addUserMoveVideoOperateTimes = param=> {
  return network({
    url: '/gp-boot/gp/api/gpUserMoveVideoOperateTimes/addUserMoveVideoOperateTimes',
    method: 'post',
    param,
    auth: true,
  })
}


//活动-详情定位
export const gpMoveInfoPos = param=> {
  return network({
    url: '/gp-boot/gp/api/gpMove/info',
    method: 'post',
    param,
    auth: true,
  })
}
